package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.PrivateMessage;
import cn.wolfcode.trip.base.domain.Region;
import cn.wolfcode.trip.base.domain.SystemMessages;
import cn.wolfcode.trip.base.query.PrivateMessageQueryObject;
import cn.wolfcode.trip.base.query.SystemMessagesQueryObject;

import java.util.List;

public interface IPrivateMessageService {
    /**
     * 根据父区域的parentId查询区域对象,如果没有传递parentId,就查询所有根区域
     * @param parentId
     * @return
     */
    List<Region> listMenus(Long parentId);

    void saveOrUpdate(PrivateMessage entity);

    List<PrivateMessage> list(Integer state);

    List<SystemMessages> getprivateMessage(PrivateMessageQueryObject qo);

    PrivateMessage get(Long id);

    void update(PrivateMessageQueryObject qo);
}
